package com.back.campus_back.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2021-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="WantedGoods对象", description="")
public class WantedGoods implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "求购编号")
    @TableId(value = "want_id", type = IdType.AUTO)
    private Integer wantId;

    @ApiModelProperty(value = "商品名")
    private String wantName;

    @ApiModelProperty(value = "详细介绍")
    private String wantContent;

    @ApiModelProperty(value = "手机号码")
    private String phone;

    @ApiModelProperty(value = "qq号码")
    private String qq;

    @ApiModelProperty(value = "理想价格")
    private Float sellPrice;

    @ApiModelProperty(value = "关联学生id")
    private Integer studentId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "求购者学校")
    private String school;

    @ApiModelProperty(value = "用户头像")
    private String userImg;

    @ApiModelProperty(value = "求购商品类型")
    private Integer goodType;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;


}
